Ext.define('EM.model.Event', {
    extend:'Gnt.model.Task',

    // A field in the dataset that will be added as a CSS class to each rendered task element
    clsField:'TaskType',
    fields:[
//        { name:'id', type:'int', mapping:'Id'},
//        { name:'TaskType', type:'string' },
        { name:"EndDate", type:'date', mapping:"end_date"},
        { name:"Id", type:'int', mapping:"id"},
        { name:"Name", type:'string', mapping:"name"},
        { name:"StartDate", type:'date', mapping:"start_date"},
        { name:"expanded", type:'boolean', defaultValue:true},
        { name:"leaf", type:'boolean', defaultValue:false}
    ],
    hasMany:{model:'EM.model.Event'}
});
